<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0049)http://blog.itpub.net/29605243/viewspace-1141227/ -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" async="" charset="utf-8" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/core.php"></script><script>
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)=="micromessenger") {
    location.href='http://blog.itpub.net/article.php?url='+ window.location.href;
}
</script>
     	 <style>
    .Blog_nav1_2 a em { display:inline-block; width:16px; height:13px; background:url(/image/v.jpg) no-repeat; overflow:hidden;}
</style>

<link rel="stylesheet" type="text/css" href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/style.css">
<link rel="stylesheet" type="text/css" href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/qqFace.css">
<link rel="stylesheet" type="text/css" href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/asyncbox.css">
<link rel="stylesheet" type="text/css" href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/pager.css">
<script type="text/javascript" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/jquery.min.js"></script>
<script type="text/javascript" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/jquery.cookies.min.js"></script>
<script type="text/javascript" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/AsyncBox.v1.4.5.js"></script>
<title>Ivy学习笔记-cloudboyyun-ITPUB博客</title>
<meta name="description" content="
	
		安装
	


	在Eclipse Market中，搜索Ivy, 安装IvyDE
	


	
		
			使用
		
	


	
		
			新建个Java Project, 起名StudyIv">

<script type="text/javascript">
if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){
	try{
		if(!/iPad/i.test(navigator.userAgent)){
			var oldurl=window.location.href;
			var wapUrl= oldurl.replace('blog.itpub.net', "m.blog.itpub.net") ;
			window.location.href = wapUrl;
		}
	}catch(e){}
}
</script>

<script language="javascript">
//用户是否在线
var isOnLine = '';
$(document).ready(function(){
	var blog = {'name': '', 'name_url': '', 'brief': ''};
	//消息通知显示和隐藏控制
	$('#show_message_slide_button').hover(
		function(){
			$('#message_slide_div').slideDown(100);											   
		},
		function(){
			
		}
	);

	$('#message_slide_div').hover(
		function(){
			
		},
		function(){
			$('#message_slide_div').slideUp(100);
		}
	);
	
	//编辑博客名
	$('#editbna').click(function(){
		blog.name = $('#bnaspan a').text();
		var val = '<input id="bnainput" type="text" style="float:left" value="" rel="' +$(this).attr('rel') + '" /><input id="bnasub" type="button" style="float:left" class="btn1"><input id="bnacanl" type="button" style="float:left" class="btn2"><div class="clear"></div>';
		$('#bnaspan').html(val);
		$('#bnainput').val(blog.name);
		$(this).parent().hide();
	});
	
	$('#bnasub').live('click', function(){
	    var rel = eval('({' + $('#bnainput').attr('rel') + '})');
		var name = $('#bnainput').val();
		if(name != blog.name){
	        $.ajax({
			    type: "POST",
			    url: rel.url,	
			    data: {
				    'name' : name
			    },
			    success:function(data){
				    if(data == 0){
						$('#bnaspan').html(blog.name);
						$('#bnaspan').html('<a href="' + rel.href + '">' + $('#bnaspan').html() + '</a>');
				    }else{
						$('#bnaspan').html(data);
						$('#bnaspan').html('<a href="' + rel.href + '">' + $('#bnaspan').html() + '</a>');
				    }
					$('#editbna').parent().show();
				}
			});
		}else{
		    $('#bnaspan').text(blog.name).html();
			$('#bnaspan').html('<a href="' + rel.href + '">' + $('#bnaspan').html() + '</a>');
			$('#editbna').parent().show();
		}
	});
	
	$('#bnacanl').live('click', function(){
		var rel = eval('({' + $('#bnainput').attr('rel') + '})');
		$('#bnaspan').html('<a href="' + rel.href + '">' + blog.name + '</a>');
		$('#editbna').parent().show();
	});
	
	//编辑签名
	$('#editbrief').click(function(){
	    blog.brief = $('#briefem').text();
		var val = '<input id="brfinput" type="text" style="float:left" value="" rel="' + $(this).attr('rel') + '" /><input id="brfsub" style="float:left"  type="button" class="btn1"><input style="float:left"  id="brfcanl" type="button" class="btn2"><div class="clear"></div>';
		$('#briefem').html(val);
		$('#brfinput').val(blog.brief);
		$(this).parent().hide();
	});
	
	$('#brfsub').live('click', function(){
	    var url = $('#brfinput').attr('rel');
		var brief = $('#brfinput').val();
		if(brief != blog.brief){
	        $.ajax({
			    type: "POST",
			    url: url,	
			    data: {
				    'brief' : brief
			    },
			    success:function(data){
				    if(data == 0){
				        $('#briefem').html(blog.brief);
				    }else{
						$('#briefem').html(data);
				    }
					$('#editbrief').parent().show();
				}
			});
		}else{
		    $('#briefem').text(blog.brief).html();
			$('#editbrief').parent().show();
		}
	});
	
	$('#brfcanl').live('click', function(){
		$('#briefem').html(blog.brief);
		$('#editbrief').parent().show();
	});

});
</script>
<script src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/share.js"></script><script type="text/javascript" async="" charset="utf-8" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/itpub.js"></script><link href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/it168.css" rel="stylesheet" type="text/css"><script src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/bcore.min.js" type="text/javascript"></script><script id="" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/StdID.do" charset="utf-8"></script><link rel="stylesheet" href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/share_style0_24.css"><script src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/PageView.do" charset="utf-8"></script></head>
<body>
<div class="box">
  <!-- 一级导航 -->
  <div class="Blog_nav1">
    <div class="Blog_nav1_2"><a href="http://blog.itpub.net/"><img src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/1.png"></a><a href="http://www.itpub.net/" class="Blog_a1">ITPUB首页</a>　| 　<a href="http://www.itpub.net/" target="_blank">论坛</a> | <a href="http://u.it168.com/vip/"><font color="red">认证专区</font></a> | <a href="http://blog.itpub.net/" target="_blank">博客</a><span class="Blog_span1"></span>
            <a href="http://blog.itpub.net/site/login/" class="Blog_a1" onclick="linkto()">登录</a> | <a href="http://u.it168.com/Register?webid=4&amp;returnUrl=http%3A%2F%2Fblog.itpub.net%2F29605243%2Fviewspace-1141227%2F" class="Blog_a1">注册</a>
          </div>
	<!--自动提示层-->
	<style>
	.bor13221{border:1px #bbb solid;width:206px;position:absolute;top:34px;left:0;background:#fff; z-index:9999;display:none}
	.bor13221 li{height:26px;line-height:26px;padding-left:6px;color:#555;font-size:14px;cursor:pointer;}
	.here{background:#f3f3f3;}
    </style>

	<!--自动提示层-->
    <div class="Blog_nav1_3" style="position:relative; z-index:9999;">
	 <div class="bor13221" style="display: none;">
      <ul>
      </ul>
    </div>
	  <form action="http://blog.itpub.net/site/search/" method="post">
		<input type="text" autocomplete="off" class="Blog_txt1" id="search_input_id" name="keywords">
		<select class="Bolg_sel1" name="type" id="search_type_blog">
		  <option value="blog">博文</option>
		  <option value="author">博主</option>
		</select>
		<input type="submit" value="" name="submit" class="Blog_btn1">
	 </form>
    </div>
    <div class="clear"></div>
    <div class="Blog_nav1_layer1" id="message_slide_div" style="display:none;">
	    <ul>
	    	<li><a href="http://blog.itpub.net/message/private/">私人消息()</a></li>
	    	<li><a href="http://blog.itpub.net/message/system/">系统消息()</a></li>
	    	<li><a href="http://blog.itpub.net/member/request/">好友请求()</a></li>
	    	<li><a href="http://blog.itpub.net/member/notification/">通知管理()</a></li>
	    </ul>
    </div>
  </div>
   <script type="text/javascript">
  	$(function(){
		//点击添加进文本框
		$(".bor13221 li").live( 'click' , function(e){
			if ( e && e.stopPropagation )
			{
				//因此它支持W3C的stopPropagation()方法
				e.stopPropagation();
			}
			else
			{
				//否则，我们需要使用IE的方式来取消事件冒泡
				window.event.cancelBubble = true; 
			}
			$('#search_input_id').val($(this).text());
			$(".bor13221 ul").html('');
			$(".bor13221").hide();
		});
		$(".bor13221 ul li").live({
			mouseenter:
			function()
			{
				$(".bor13221 ul li").removeClass("here");
				$(this).addClass('here');
			},
			mouseleave:
			function()
			{
				$(".bor13221 ul li").removeClass("here");
				$(this).removeClass('here');
			}
		});
		//自动提示
		$('#search_input_id').keyup(function(event){
			//取消博主的提示
			var search_type_blog = $('#search_type_blog').val();
			if(search_type_blog == 'author') return false;

			var key = $(this).val();
			//获取键值
			var keycode = event.which; //38 上 40 下
			var count = $('.bor13221 ul li').length;
			if(key != '' && keycode != 38 && keycode != 40)
			{
				$.getJSON("http://api.sou.it168.com/autoWenKuCloud?jsoncallback=?",{"ty":"json","offset":"0","limit":"10","q":key}, function(result)
					{
						var arr = result.data;

						var html ='';
						for (i=0;i<arr.length ;i++ )   
						{   
							html += '<li>'+arr[i]+'</li>';
						} 
						
						$('.bor13221 ul').html(html);
						(arr.length > 1) ?  $(".bor13221").show() : $(".bor13221").hide();
					}
				);
			}
			else if(keycode == 38)
			{
				if(count > 0)
				{
					//遍历li
					var curr_li_num;
					$('.bor13221 ul li').each(function(index , dom){
						if($(dom).attr('class') == 'here')
						{
							curr_li_num = index;
							return false;
						}
					}); 
					var next_li_num;
					if(typeof(curr_li_num) == 'undefined')
					{
						next_li_num = count - 1;
					}
					else
					{
						if(curr_li_num == 0)
						{
							next_li_num = count - 1;
						}
						else
						{
							next_li_num = curr_li_num - 1;
						}
					}
					$(".bor13221 ul li").removeClass("here");
					$(".bor13221 ul li:eq(" + next_li_num + ")").addClass("here");
					$('#search_input_id').val($(".bor13221 ul li:eq(" + next_li_num + ")").text());
				}
			}
			else if(keycode == 40)
			{
				if(count > 0)
				{
					//遍历li
					var curr_li_num;
					$('.bor13221 ul li').each(function(index , dom){
						if($(dom).attr('class') == 'here')
						{
							curr_li_num = index;
							return false;
						}
					}); 
					var next_li_num;
					if(typeof(curr_li_num) == 'undefined')
					{
						next_li_num = 0;
					}
					else
					{
						if(curr_li_num == count - 1)
						{
							next_li_num = 0;
						}
						else
						{
							next_li_num = curr_li_num + 1;
						}
					}
					$(".bor13221 ul li").removeClass("here");
					$(".bor13221 ul li:eq(" + next_li_num + ")").addClass("here");
					$('#search_input_id').val($(".bor13221 ul li:eq(" + next_li_num + ")").text());
				}
			}
		});
		$(document).click(function(e){
			$(".bor13221").hide();
		});

	});
  </script>
  <!-- 头 -->
  <!-- 推荐博客-->
  <div class="Blog_header1">
	    <div class="Blog_header1_1">
      <p class="Blog_p1"><em><a href="http://blog.itpub.net/29605243/">空中小屋</a></em>      </p><p class="Blog_p2" style="color:#8F0100">暂无签名</p>
    </div>
        <div class="Blog_header1_2" id="hide_div1">
    	<span class="Blog_span3"></span>
    	<div class="float_div1" style="white-space:nowrap;" onmouseover="javascript:isMove=false" onmouseout="javascript:isMove=true">
	    <ul id="noticev2" style="line-height: 25px; margin-top: -50px;">  
		    		    <li><a href="http://blog.itpub.net/10718265/viewspace-1654311/" target="_blank">成立QQ群、微信群，辅助互动与技术同行交流 </a></li>
		    		    <li><a href="http://blog.itpub.net/25508077/viewspace-1787372/" target="_blank"> 新注册用户开博客，需要申请与实名认证 </a></li>
		    		    <li><a href="http://bbs.chinaunix.net/thread-4181131-1-1.html" target="_blank">征文：技术自白书之架构师大会 前8有奖！</a></li>
		    	    </ul>
	    </div>
    </div>
            <div class="Blog_header1_3"><a href="http://blog.itpub.net/29605243/">首页</a>　| 　<a href="http://blog.itpub.net/29605243/abstract/1/">博文目录</a>　| 　<a href="http://blog.itpub.net/member/profile/uid/29605243/">关于我</a></div>
  </div>
    
  <!-- 内容部分 -->
  	<script type="text/javascript" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/XRegExp.js"></script> <!-- XRegExp is bundled with the final shCore.js during build -->
<script type="text/javascript" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/shCore.js"></script>
<script type="text/javascript" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/shAutoloader.js"></script>
<link type="text/css" rel="stylesheet" href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/shCore.css">
<link type="text/css" rel="Stylesheet" href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/shThemeDefault.css">
<link href="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/fck_editorarea.css" rel="stylesheet" type="text/css">
<style>
.Blog_p5 em{ display:inline-block; width:16px; height:13px; background:url(/image/v.jpg) no-repeat; overflow:hidden;}
</style>
  <div class="Blog_contain"> 
    <!-- 左 -->
	<style>
    .Blog_left1_1 p a em { display:inline-block; width:16px; height:13px; background:url(/image/v.jpg) no-repeat; overflow:hidden;}
</style>

<script language="javascript">
//$(document).ready(function(){
//showErrorMsg('你好，您还未实名认证，认证后您将获得更多专享服务！<a href="http://u.it168.com/renzheng" target="new"><b style="color:blue"> 去认证</b></a> ', '消息提示');
//})
</script>
<script language="javascript">
$(document).ready(function(){
	$('#ConcernBtn').bind('click',function(){
			var cuid = '29605243';
			var url =  '/member/concern/';
			var type = $(this).attr('rel');
		
			if(type == 'addConcern'){
				$.ajax({
					type : 'get',
					url  : url,
					data : {'op' : 'ajaxadd' , 'cuid' : cuid, 'random' : Math.random()},
					success : function(msg){	
					   if(msg == -1){
						   showErrorMsg('参数错误！');
					   } else if (msg == 0){
						   showErrorMsg('关注失败，没有该用户！');
					   } else if (msg == 1){
						   showErrorMsg('关注失败，您已经关注了该用户！');
					   } else if (msg == 2){
						   $('#ConcernBtn').val('已关注');
						   $('#ConcernBtn').attr('rel','delConcern');
						   showSucceedMsg('关注成功!');
					   } else if (msg == 3){
						   showErrorMsg('未知错误');
					   }
					}
				});	
			} else if ( type == 'delConcern'){
				$.ajax({
					type : 'get',
					url  : url,
					data : {'op' : 'ajaxdel' , 'cuid' : cuid, 'random' : Math.random()},
					success : function(msg){
					   if(msg == 0){
						   showErrorMsg('参数错误！','消息提示');
					   } else if (msg == 1){
						   showErrorMsg('操作失败，请尝试刷新页面重试！','消息提示');
					   } else if (msg == 2){
						   $('#ConcernBtn').val('加关注');
						   $('#ConcernBtn').attr('rel','addConcern');
						   showSucceedMsg('成功取消关注！','消息提示');
					   } else if (msg == 3){
						   showErrorMsg('未知错误！','消息提示'); 
					   }
					}
				});	
			}
	});					   
});

//加好友
function addFriend(fuid, url){
	if(fuid == '' || fuid.length == 0){
		showErrorMsg('缺少参数！','信息提示');
		return false;
	}
	$.ajax({
		   type : 'get',
		   url : url,
		   data : {'op' : 'add', 'fuid' : fuid , 'random' : Math.random()},
		   success : function(msg){
				if(msg == -1){
					showErrorMsg('参数错误！','消息提示');
				} else if (msg == -2){
					showErrorMsg('添加好友失败,没有该用户的信息！','消息提示');
				} else if (msg == -3){
					showErrorMsg('添加好友失败,你不能添加自己为好友！','消息提示');
				} else if (msg == -4){
					showErrorMsg('添加好友未知错误,该错误已被记录！','消息提示');
				} else if (msg == -5){
					showErrorMsg('添加好友失败,你之前已经发送过好友请求,请耐心等待对方同意申请！','消息提示');
				} else if (msg == -6){
					showErrorMsg('添加好友失败,你们已经是好友了！','消息提示');
				} else {
					$.cover(true);
					asyncbox.open({
						id : 'addFriend',
						title : '添加好友',
						url : url,
						data : {'op' : 'add', 'fuid' : fuid , 'random' : Math.random()},
						width : 490,
						height : 180,
						scroll : 'no',
						callback : function(action) {
							if (action == 'close'){
								$.cover(false);
							}	
						}
					});	
				}
		   }
	});	
	
}

//发送短消息
function postMessage(msguid, url){
	if(msguid == '' || msguid.length == 0){
		showErrorMsg('缺少参数！','信息提示');
		return false;
	}
	
	$.ajax({
		   type : 'post',
		   url : url,
		   data : {'op' : 'ajaxpost', 'msguid' : msguid , 'random' : Math.random()},
		   success : function(msg){
				if(msg == -1){
					showErrorMsg('发送失败，缺少收件人对象！','消息提示');
				} else if(msg == -2){
					showErrorMsg('发送失败，自己不能给自己发送短消息！','消息提示');
				} else {
					$.cover(true);
					asyncbox.open({
						id : 'postMessage',
						title : '发送短消息',
						url : url,
						data : {'op' : 'ajaxpost', 'msguid' : msguid , 'random' : Math.random()},
						width : 510,
						height : 255,
						scroll : 'no',
						callback : function(action) {
							if (action == 'close'){
								$.cover(false);
							}	
						}
					});	
				}
		   }
	});	
}

</script>
<div class="Blog_left">
      <div class="Blog_left1 Blog_bg1">
        <div class="Blog_left1_1">
			<!-- 专家博客-->
			<a href="http://blog.itpub.net/29605243/"><img src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/noavatar_middle.gif" onerror="this.onerror=null;this.src=&#39;http://passport.ixpub.net/images/noavatar_middle.gif&#39;"></a>
                                    <p><a href="http://blog.itpub.net/29605243/">cloudboyyun</a></p>
                    </div>
        <ul class="Blog_ul1 Blog_noline1">
          <li>博客访问： 2867 </li>
          <li>博文数量： 1 </li>
          <li>用  户  组：  普通用户</li>
          <li>注册时间： 2014-04-13 16:27 </li>
		  		          </ul> 
		
		
        
                <div class="HT_line3 HT_line3_1"></div>
        <ul class="Blog_ul2">
          <li><input type="button" value="加关注" id="ConcernBtn" onclick="showErrorMsg(&#39;操作失败,您需要先登录!&#39;, &#39;消息提示&#39;, &#39;/site/login/&#39;)"></li>
          <li><input type="button" value="短消息" id="postMessageBtn" onclick="showErrorMsg(&#39;操作失败,您需要先登录!&#39;, &#39;消息提示&#39;, &#39;/site/login/&#39;)"></li>
          <li><input type="button" value="论坛" onclick="location.href=&#39;http://www.itpub.net/forum.php&#39;"></li>
          <li><input type="button" value="加好友" id="addFriendBtn" onclick="showErrorMsg(&#39;操作失败,您需要先登录!&#39;, &#39;消息提示&#39;, &#39;/site/login/&#39;)"></li>
        </ul>
              </div>
            <div class="Blog_left2 Blog_bg1">
        <div class="Blog_tit1">个人简介</div>
        <p class="Blog_p3">比起IT技术，我就只喜欢美食、金钱、美女、旅游.....嘿嘿</p>
      </div>
        
         
      <div class="Blog_left2 Blog_bg1">
        <div class="Blog_tit1">文章分类</div>
        <div class="Blog_left2_1">
          <p class="Blog_p4"><a href="http://blog.itpub.net/29605243/list/1/">全部博文</a>（1）</p>
          <ul id="blogCla">
                            <li><a href="http://blog.itpub.net/29605243/cid-167782-list-1/" title="编译与依赖管理工具">编译与依赖管理工</a>（1）
                                </li>
                            <li><a href="http://blog.itpub.net/29605243/cid--1-list-1/" title="未分配的博文">未分配的博文</a>（0）
                                </li>
                      </ul>
        </div>
      </div>
      	              <div class="Blog_left2 Blog_bg1">
        <div class="Blog_tit1">文章存档</div>
        <div class="Blog_left2_1" id="blogdtr">
                    <p class="Blog_p4"><span class="Blog_jia1"></span><a href="http://blog.itpub.net/29605243/year-2014-list-1/">2014年</a>（1）</p>
          <ul style="display:none;" class="Blog_ul3 zk">
                        <li><a href="http://blog.itpub.net/29605243/year-201404-list-1/">2014年04月</a>（1）</li>
                      </ul>
                  </div>
      </div>
      	  	        <div class="Blog_left2 Blog_bg1">
        <div class="Blog_tit1">我的朋友</div>
        <ul class="Blog_ul4">
                  </ul>
      </div>
	  	        <div class="Blog_left2 Blog_bg1">
        <div class="Blog_tit1">最近访客</div>
        <ul class="Blog_ul4">
                    <li><a href="http://blog.itpub.net/30547010/"><img src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/noavatar_small.gif" onerror="this.onerror=null;this.src=&#39;http://passport.ixpub.net/images/noavatar_small.gif&#39;"></a>
            <p><a href="http://blog.itpub.net/30547010/" title="小范大大">小范大大</a></p>
          </li>
                    <li><a href="http://blog.itpub.net/1802/"><img src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/noavatar_small.gif" onerror="this.onerror=null;this.src=&#39;http://passport.ixpub.net/images/noavatar_small.gif&#39;"></a>
            <p><a href="http://blog.itpub.net/1802/" title="rocwzp">rocwzp</a></p>
          </li>
                    <li><a href="http://blog.itpub.net/10742815/"><img src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/noavatar_small.gif" onerror="this.onerror=null;this.src=&#39;http://passport.ixpub.net/images/noavatar_small.gif&#39;"></a>
            <p><a href="http://blog.itpub.net/10742815/" title="21ca">21ca</a></p>
          </li>
                  </ul>
      </div>
	       <div class="Blog_left2 Blog_left3 Blog_bg1">
        <div class="Blog_tit1">微信关注</div>
        <div class="">
                <div class="" style="float:left; margin-right:5px;">
                 <img width="90" height="90" alt="" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/IT168.jpg">
                 </div><br>
                <div class="" style="margin-top:10px;">
                 <p class="">
                         IT168企业级官微
                </p>
                 <p class="">

                 <br><br>
                 微信号：IT168qiye
                </p>
                </div>
        </div>
<hr size="1" style="clear:both;">
        <div class="" style="clear:both;">
                <div class="" style="float:left; margin-right:5px;">
                 <img width="90" height="90" alt="" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/itpub.jpg">
                 </div><br>
                <div class="" style="margin-top:10px;">
                 <p class="">
                         系统架构师大会
                </p>
                 <p class="">

                 <br><br>
                 微信号：SACC2013
                </p>
                </div>
        </div>

</div>
      <div class="Blog_left2 Blog_bg1">
        <div class="Blog_tit1">订阅</div>
        <ul class="Blog_ul5">
          <li><a href="http://blog.itpub.net/blog/rss/uid/29605243/" class="Blog_a4"></a></li>
          <li><a href="http://www.google.com/ig/add?feedurl=http%3A%2F%2Fblog.itpub.net%2F29605243%2F" class="Blog_a5"></a></li>
        </ul>
      </div>
      <div class="Blog_left2 Blog_left3 Blog_bg1">
        <div class="Blog_tit1">推荐博文</div>
        <ul class="Blog_ul6">
				  			<li>·<a href="http://blog.itpub.net/23718752/viewspace-2072718/" title="一次快速的数据迁移感悟">一次快速的数据迁移感悟...</a></li>
		  			<li>·<a href="http://blog.itpub.net/26736162/viewspace-2072635/" title="【RAC】rac中如何指定job的运行实例">【RAC】rac中如何指定job的运...</a></li>
		  			<li>·<a href="http://blog.itpub.net/23718752/viewspace-2072047/" title="客户端无法连接数据库的小问题">客户端无法连接数据库的小问...</a></li>
		  			<li>·<a href="http://blog.itpub.net/7728585/viewspace-2071787/" title="INNODB 页节点数据的存储方式、数据链、删除链的学习和实验总结">INNODB 页节点数据的存储方式...</a></li>
		  			<li>·<a href="http://blog.itpub.net/26015009/viewspace-2071593/" title="Oracle Linux 7禁用Transparent HugePages">Oracle Linux 7禁用Transpare...</a></li>
		  		        </ul>
      </div>

	  <div class="Blog_left2 Blog_left3 Blog_bg1">
        <div class="Blog_tit1">热词专题</div>
        <ul class="Blog_ul6">
          <!--              <li>·<a href="http://www.dataguru.cn/zhuanti/hadoop220peizhi.shtml" target='blank' title='配置hadoop2.2.0格式化namenode问题'></a></li>
              <li>·<a href="http://www.dataguru.cn/zhuanti/hadoopshouce.shtml" target='blank' title='hadoop2.2.0安装手册'></a></li>-->
        </ul>
      </div>
      
	  

	</div>
<script language="javascript">
$(document).ready(function(){
    /*目录树JS效果*/
	$('#blogCla li > span').click(function(){
		var cla = $(this).attr('class');
		if(cla == 'Blog_jia1'){
			//$('#blogCla li > span').removeClass('Blog_jian1').addClass('Blog_jia1');
			//$('#blogCla li > .zk').css('display', 'none');
				
			$(this).removeClass('Blog_jia1').addClass('Blog_jian1');
            $(this).parent().children('.zk').css('display', 'block');
		}else{
			$(this).removeClass('Blog_jian1').addClass('Blog_jia1');
            $(this).parent().children('.zk').css('display', 'none');
		}
	});
		
	$('#blogdtr > p > span').click(function(){
		var cla = $(this).attr('class');
		if(cla == 'Blog_jia1'){
			//$('#blogdtr > .Blog_p4 > span').removeClass('Blog_jian1').addClass('Blog_jia1');
			//$('#blogdtr ul').css('display', 'none');
				
			$(this).removeClass('Blog_jia1').addClass('Blog_jian1');
            $(this).parent().next().css('display', 'block');
		}else{
			$(this).removeClass('Blog_jian1').addClass('Blog_jia1');
            $(this).parent().next().css('display', 'none');
		}
	});
});
</script>    <!-- 右 -->
    <div class="Blog_right1">
      <div class="Blog_right1_1 Blog_right1_11">
        <div class="Blog_right1_2 ">
			<!--推荐博文-->
          <div class="Blog_tit4 Blog_tit5">
                        <b class="Blog_b1"></b>
            <a href="http://blog.itpub.net/29605243/viewspace-1141227/">Ivy学习笔记</a>
            <em>2014-04-13 16:50:39</em>
          </div>
          <div class="Blog_con2">
            <div class="Blog_con3">
              <p>分类： <span>Java技术</span></p>
			                <p></p>
            </div>
           <div class="Blog_wz1" style="word-wrap: break-word;">
               			<ul style="text-transform:none;text-indent:0px;font:13px 微软雅黑;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	<li>
		安装
	</li>
</ul>
<div style="text-transform:none;text-indent:0px;font:13px 微软雅黑;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	在Eclipse Market中，搜索Ivy, 安装IvyDE<br>
	<hr>
</div>
<div style="text-transform:none;text-indent:0px;font:13px 微软雅黑;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	<ul>
		<li>
			使用
		</li>
	</ul>
</div>
<div style="text-transform:none;text-indent:0px;font:13px/19px 宋体;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	<ol style="line-height:normal;font-family:微软雅黑;">
		<li>
			新建个Java Project, 起名StudyIvy
		</li>
		<li>
			新建个Java类，如下
			<table style="border-bottom:#bbbbbb 1px solid;border-left:#bbbbbb 1px solid;margin-top:10px;border-collapse:collapse;margin-bottom:10px;border-top:#bbbbbb 1px solid;border-right:#bbbbbb 1px solid;" border="1" cellspacing="0" cellpadding="2">
				<tbody>
					<tr>
						<td style="border-bottom:#999999 1px solid;border-left:#999999 1px solid;padding-bottom:5px;padding-left:10px;padding-right:10px;border-collapse:collapse;height:31px;word-break:break-all;border-top:#999999 1px solid;border-right:#999999 1px solid;padding-top:5px;" valign="top">
							<div style="min-width:2px;">
								package hello;
							</div>
							<div style="min-width:2px;">
							</div>
							<div style="min-width:2px;">
								import org.joda.time.LocalTime;
							</div>
							<div style="min-width:2px;">
							</div>
							<div style="min-width:2px;">
								public class HelloIvy {
							</div>
							<div style="min-width:2px;">
							</div>
							<div style="min-width:2px;">
								&nbsp;public static void main(String[] args) {
							</div>
							<div style="min-width:2px;">
								&nbsp; LocalTime currentTime = new LocalTime();
							</div>
							<div style="min-width:2px;">
								&nbsp; System.out.println("The current local time is: " + currentTime);
							</div>
							<div style="min-width:2px;">
								&nbsp;}
							</div>
							<div style="min-width:2px;">
								}
							</div>
						</td>
					</tr>
				</tbody>
			</table>
由于org.joda.time.LocalTime是个第三放的类，可以看到有编译错误。
		</li>
		<li>
			右键点击StudyIvy Project, 点击菜单configure/Add Ivy dependency management
		</li>
		<li>
			点击New菜单，选择IvyDe/Ivy file, Next
		</li>
		<li>
			Container选择StudyIvy, Orgnization和Module Name随便填
		</li>
		<li>
			看到StudyIvy项目里产生了一个Ivy.xml文件
		</li>
		<li>
			在Maven Respository（<a style="cursor:pointer;" href="http://www.mvnrepository.com/artifact/joda-time/joda-time/2.3">http://www.mvnrepository.com/artifact/joda-time/joda-time/2.3</a>）中，查到joda-time的ivy串如下：
			<table style="border-bottom:#bbbbbb 1px solid;border-left:#bbbbbb 1px solid;margin-top:10px;border-collapse:collapse;margin-bottom:10px;border-top:#bbbbbb 1px solid;border-right:#bbbbbb 1px solid;" border="1" cellspacing="0" cellpadding="2">
				<tbody>
					<tr>
						<td style="border-bottom:#999999 1px solid;border-left:#999999 1px solid;padding-bottom:5px;padding-left:10px;padding-right:10px;border-collapse:collapse;height:31px;word-break:break-all;border-top:#999999 1px solid;border-right:#999999 1px solid;padding-top:5px;" valign="top">
							<div style="min-width:2px;">
								<dependency org="joda-time" name="joda-time" rev="2.3">
							</dependency></div>
						</td>
					</tr>
				</tbody>
			</table>
把它添加到刚产生出来的ivy.xml文件中
			<table style="border-bottom:#bbbbbb 1px solid;border-left:#bbbbbb 1px solid;margin-top:10px;border-collapse:collapse;margin-bottom:10px;border-top:#bbbbbb 1px solid;border-right:#bbbbbb 1px solid;" border="1" cellspacing="0" cellpadding="2">
				<tbody>
					<tr>
						<td style="border-bottom:#999999 1px solid;border-left:#999999 1px solid;padding-bottom:5px;padding-left:10px;padding-right:10px;border-collapse:collapse;height:31px;word-break:break-all;border-top:#999999 1px solid;border-right:#999999 1px solid;padding-top:5px;" valign="top">
							<div style="min-width:2px;">
								<!--?xml version="1.0" encoding="ISO-8859-1"?-->
							</div>
							<div style="min-width:2px;">
								<span><ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" &nbsp;<="" span="">
							</ivy-module></span></div>
							<div style="min-width:2px;">
								&nbsp; &nbsp; &nbsp; &nbsp;xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"&gt;
							</div>
							<div style="min-width:2px;">
								&nbsp; &nbsp; <info <="" div="">
							<div style="min-width:2px;">
								&nbsp; &nbsp; &nbsp; &nbsp; organisation="com.cloudboy"
							</div>
							<div style="min-width:2px;">
								&nbsp; &nbsp; &nbsp; &nbsp; module="MyStudyIvy"
							</div>
							<div style="min-width:2px;">
								&nbsp; &nbsp; &nbsp; &nbsp; status="integration"&gt;
							</div>
							<div style="min-width:2px;">
								&nbsp;
							</div>
							<div style="min-width:2px;">
								&nbsp;<dependencies>
							</dependencies></div>
							<div style="min-width:2px;">
								&nbsp; <dependency org="joda-time" name="joda-time" rev="2.3">
							</dependency></div>
							<div style="min-width:2px;">
								&nbsp;
							</div>
							<div style="min-width:2px;">
								
							</div>
						</info></div></td>
					</tr>
				</tbody>
			</table>
		</li>
		<li>
			右键选择Ivy.xml文件，点击菜单Add Ivy Liabrary
		</li>
		<li>
			Eclipse把需要的类库下载到C:\Documents and Settings\Administrator\.ivy2\cache下，并且给Project增加了这个类库，编译错误没有了。成功。
		</li>
	</ol>
</div>
<hr>
<ul>
	<li>
		<span style="font-family:微软雅黑;"><span style="line-height:normal;font-size:10pt;">其它技巧</span>
	</span></li>
</ul>
如何更改ivy_cache目录
<div style="text-transform:none;text-indent:0px;font:13px/19px 宋体;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	ivy cache缺省在C盘的c:\user\[username]\.ivy下， 如果想换到其它地方，例如:D:\Local_Repository\ivy_repository
</div>
<div style="text-transform:none;text-indent:0px;font:13px/19px 宋体;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	1.在<span style="line-height:1.5;font-size:10pt;">D:\Local_Repository\ivy_repository下建立一个文本文件 -&nbsp;</span>ivysettings.properties， 文件内容只有一行：
</div>
<div style="text-transform:none;text-indent:0px;font:13px/19px 宋体;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	<table style="border-bottom:#bbbbbb 1px solid;border-left:#bbbbbb 1px solid;width:1342px;border-collapse:collapse;border-top:#bbbbbb 1px solid;border-right:#bbbbbb 1px solid;" cellspacing="0" cellpadding="0">
		<tbody>
			<tr>
				<td style="border-bottom:#bbbbbb 1px solid;border-left:#bbbbbb 1px solid;width:1341px;border-collapse:collapse;border-top:#bbbbbb 1px solid;border-right:#bbbbbb 1px solid;">
					ivy.cache.dir=D:/Local_Repository/ivy_repository
				</td>
			</tr>
		</tbody>
	</table>
</div>
<div style="text-transform:none;text-indent:0px;font:13px/19px 宋体;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	<br>
</div>
<div style="text-transform:none;text-indent:0px;font:13px/19px 宋体;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	2. 在Eclipse/Preferences/Ivy/Settings里的Property files里，add进这个文件，apply
</div>
<div style="text-transform:none;text-indent:0px;font:13px/19px 宋体;white-space:normal;letter-spacing:normal;color:#000000;word-spacing:0px;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;">
	3. 成功。
</div>                          </div>
            <!-- <div class="Blog_con3_1">管理员在2009年8月13日编辑了该文章文章。</div> -->
            <div style="clear:both"></div>
            <div class="Blog_con2_1 Blog_con3_2">
              <div>
			  <!--<img src="/image/default/tu_8.png">-->
			  <!-- JiaThis Button BEGIN -->
				<div class="bdsharebuttonbox bdshare-button-style0-24" data-bd-bind="1459414833019"><a href="http://blog.itpub.net/29605243/viewspace-1141227/#" class="bds_more" data-cmd="more"></a><a href="http://blog.itpub.net/29605243/viewspace-1141227/#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="http://blog.itpub.net/29605243/viewspace-1141227/#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="http://blog.itpub.net/29605243/viewspace-1141227/#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="http://blog.itpub.net/29605243/viewspace-1141227/#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="http://blog.itpub.net/29605243/viewspace-1141227/#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
				<!-- JiaThis Button END -->
			  </div>
                
              阅读(1739) | 评论(0) | 转发(0) |
			                <div class="HT_line3"></div>
            </div>
            <div class="Blog_con3_3">
              <div><span id="digg_num">0</span><a href="javascript:void(0)" id="digg" bid="1141227" url="/blog/digg/"></a></div>
              <p>上一篇：没有了</p>
              <p>下一篇：没有了</p>
            </div>
          </div>
          <div class="Blog_con3_4">
            <div class="Blog_tit2 Blog_tit6">相关热门文章</div>
			            <ul class="Blog_ul7">
						  <li><span class="Blog_span6"></span><a href="http://blog.itpub.net/30813761/viewspace-1982028/" title="欢迎学习学习哦在ITPUB博客安家!" target="blank">欢迎学习学习哦在ITPUB博客安...</a></li>
						  <li><span class="Blog_span6"></span><a href="http://blog.itpub.net/30813568/viewspace-1981961/" title="欢迎ivyyoung123在ITPUB博客安家!" target="blank">欢迎ivyyoung123在ITPUB博客安...</a></li>
						  <li><span class="Blog_span6"></span><a href="http://blog.itpub.net/24930246/viewspace-1981948/" title="TimesTen CacheGroup配置标准操作步骤" target="blank">TimesTen CacheGroup配置标准...</a></li>
						  <li><span class="Blog_span6"></span><a href="http://blog.itpub.net/30813108/viewspace-1981815/" title="欢迎读书学习的人在ITPUB博客安家!" target="blank">欢迎读书学习的人在ITPUB博客...</a></li>
						  <li><span class="Blog_span6"></span><a href="http://blog.itpub.net/23718752/viewspace-1981027/" title="畅游年会归来" target="blank">畅游年会归来</a></li>
			            </ul>
			            <ul class="Blog_ul7">
						  <li><span class="Blog_span7"></span><a href="http://blog.itpub.net/20013197/viewspace-853772/" title="Ajax优于JSF的原因" target="blank">Ajax优于JSF的原因</a></li>
						  <li><span class="Blog_span7"></span><a href="http://blog.itpub.net/805519/viewspace-830510/" title="window.location.search是什么意思？[用js如何获得url传递的参数]" target="blank">window.location.search是什么...</a></li>
						  <li><span class="Blog_span7"></span><a href="http://blog.itpub.net/170144/viewspace-810765/" title="与java相关的软件下载地址（陆续添加中）" target="blank">与java相关的软件下载地址（陆...</a></li>
						  <li><span class="Blog_span7"></span><a href="http://blog.itpub.net/8244769/viewspace-928668/" title="[心得] 关于 JSON 中文问题" target="blank">[心得] 关于 JSON 中文问题...</a></li>
						  <li><span class="Blog_span7"></span><a href="http://blog.itpub.net/11677396/viewspace-976994/" title="学习Timer类，定制自己的调度器&lt;二&gt;" target="blank">学习Timer类，定制自己的调度...</a></li>
			            </ul>
            <ul class="Blog_ul7">
						  <li><span class="Blog_span6"></span><a href="http://www.itpub.net/thread-2054804-1-1.html" title="【大话IT】面对AlphaGo，我们到底是输了还是赢了？" target="blank">【大话IT】面对AlphaGo，我们...</a></li>
						  <li><span class="Blog_span6"></span><a href="http://www.itpub.net/thread-2054237-1-1.html" title="挑战题" target="blank">挑战题</a></li>
						  <li><span class="Blog_span6"></span><a href="http://www.itpub.net/thread-2054798-1-1.html" title="oracle会话阻塞排查" target="blank">oracle会话阻塞排查</a></li>
						  <li><span class="Blog_span6"></span><a href="http://www.itpub.net/thread-2053909-1-1.html" title="【活动】物联网感智创新大赛火热报名中" target="blank">【活动】物联网感智创新大赛火...</a></li>
						  <li><span class="Blog_span6"></span><a href="http://www.itpub.net/thread-2054454-1-1.html" title="【独家精彩花絮】技术竞技：谁是上海滩的Lucky DBA？" target="blank">【独家精彩花絮】技术竞技：谁...</a></li>
			            </ul>
            <div class="clear"></div>
          </div>
		  <!--
          <div class="Blog_con3_4 Blog_con3_5">
            <div class="Blog_tit2 Blog_tit7">热门推荐</div>
            <ul>
			              <li><a href="" title="" target='blank' ></a></li>
			            </ul>
          </div>
		  -->
        </div>
      </div>
      <div class="Blog_right1_7" id="replyList">
		<div class="Blog_tit3">给主人留下些什么吧！~~</div>
				<!--暂无内容-->
				<!-- 评论分页-->
		<div class="Blog_right1_6 Blog_right1_12">
        		</div>
		<!-- 评论分页-->
        <div class="Blog_right1_10">
          <div class="Blog_tit3">评论热议</div>
		  		 <!--未登录 -->
        <div class="Blog_right1_8">
          <div class="nologin_con1"> 请登录后评论。
            <p><a href="http://blog.itpub.net/site/login/" onclick="linkto()">登录</a> <a href="http://sso.itpub.net/Register?return_url=http://blog.itpub.net">注册</a></p>
          </div>
        </div>
		
        </div>
      </div>
    </div>
  </div>
  <input type="hidden" id="report_url" value="/blog/ViewReport/">

<script type="text/javascript">
  	//测试字符串的长度 一个汉字算2个字节
	function mb_strlen(str)
	{
		var len=str.length;
		var totalCount=0;
		for(var i=0;i<len;i++)
		{
			var c = str.charCodeAt(i);
			if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) {
				totalCount++;
			}else{
				totalCount+=2;
			}
		}
		return totalCount;
	}
	/*
	var Util = {};
	Util.calWbText = function (text, max){
		if(max === undefined)
			max = 500;
		var cLen=0;
		var matcher = text.match(/[^\x00-\xff]/g),
			wlen  = (matcher && matcher.length) || 0;
		//匹配url链接正则 http://***
		var pattern = /http:\/\/([\w-]+\.)+[\w-]+(\/*[\w-\.\/\?%&=][^\s^\u4e00-\u9fa5]*)?/gi;
		//匹配的数据存入数组
		var arrPt = new Array();
		var i = 0;
		while((result = pattern.exec(text)) != null){
			arrPt[i] = result[0];
			i++;
		}
		//替换掉原文本中的链接
		for(var j = 0;j<arrPt.length;j++){
			text = text.replace(arrPt[j],"");
		}
		//减掉链接所占的长度
		return Math.floor((max*2 - text.length - wlen)/2 - 12*i);
	};
	*/
	var allowComment = '0';
	
	//举报弹出层
	function showJuBao(url, cid){
		
			$.cover(false);
			asyncbox.open({
				id  : 'report_thickbox',
				url : url,
				title : '举报违规',
				width : 378,
				height : 240,
				scroll : 'no',
				data : {
					'cid'	 : cid,
					'idtype' : 2 
				},
				callback : function(action){
					if(action == 'close'){
						$.cover(false);
					}
				}
			});
	}

	$(function(){

		//创建管理员删除的弹出层
		$('#admin_article_del').click(function(){
			$.cover(false);
			asyncbox.open({
				id : 'class_thickbox',
				html : '<div class="HT_layer3_1"><ul><li class="HT_li1">操作原因：<select class="HT_sel7" id="del_type" name="del_type"><option value="广告文章">广告文章</option><option value="违规内容">违规内容</option><option value="标题不明">标题不明</option><option value="文不对题">文不对题</option></select></li><li class="HT_li1" ><input class="HT_btn4" id="admin_delete"  type="button" /></li></ul></div>',
				title : '选择类型',
				width : 300,
				height : 150,
				scroll : 'no',
				callback : function(action){
					if(action == 'close'){
						$.cover(false);
					}
				}
			});
		});
		$('#admin_delete').live('click' , function(){
			///blog/logicdel/id/3480184/url/%252Fblog%252Findex.html.html
			var type = $('#del_type').val();
			var url = '/blog/logicdel/id/1141227/url/%252F29605243%252F/';
			window.location.href= url + '?type=' + type;
		});


		//顶  js中暂未添加&过滤 
		$('#digg').live('click' , function(){

			if(isOnLine == '' )
			{
				//showErrorMsg('登录之后才能进行此操作' , '消息提示');
				showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
				return false;
			}

			var bid = $('#digg').attr('bid');
			var url = $('#digg').attr('url');

			var digg_str = $.cookie('digg_id');
			if(digg_str != null)
			{
				var arr= new Array(); //定义一数组

				arr = digg_str.split(","); //字符分割     
				for( i=0 ; i < arr.length ; i++ )   
				{   
					if(bid == arr[i])
					{
						showErrorMsg('已经赞过该文章', '消息提示'); 
						return false;
					}
				} 
			}
			$.ajax({
				type:"POST",
				url:url,	
				data: {
					'bid' : bid 
				},
				dataType: 'json',
				success:function(msg){
					if(msg.error == 0)
					{
						var num = parseInt($('#digg_num').html(),10);
						num += 1;
						$('#digg_num').html(num);
						$('#digg').die();

						if(digg_str == null)
						{
							$.cookie('digg_id', bid, {expires: 30 , path: '/'});
						}
						else
						{
							$.cookie('digg_id', digg_str + ',' + bid, {expires: 30 , path: '/'});
						}
						showSucceedMsg('谢谢' , '消息提示');
					}
					else if(msg.error == 1)
					{
						//showErrorMsg(msg.error_content , '消息提示'); 
						showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
					}
					else if(msg.error == 2)
					{
						showErrorMsg(msg.error_content , '消息提示'); 
					}
				}
			});
		});
		//举报弹出层
		/*$('.box_report').live('click' , function(){
			if(isOnLine == '' )
			{
				//showErrorMsg('登录之后才能进行此操作' , '消息提示');
				showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
				return false;
			}
			var url = $('#report_url').val();
			var cid = $(this).attr('cid');
			$.cover(false);
			asyncbox.open({
				id  : 'report_thickbox',
				url : url,
				title : '举报违规',
				width : 378,
				height : 240,
				scroll : 'no',
				data : {
					'cid'	 : cid,
					'idtype' : 2 
				},
				callback : function(action){
					if(action == 'close'){
						$.cover(false);
					}
				}
			});
		});*/


		//评论相关代码
		
		//点击回复显示评论框
		$('.Blog_a10').live('click' , function(){
			if(isOnLine == '' )
			{
				//showErrorMsg('登录之后才能进行此操作' , '消息提示');
				showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
				return false;
			}

			if(allowComment == 1)
			{
				showErrorMsg('该博文不允许评论' , '消息提示'); 
				return false;
			}
			var tid = $(this).attr('toid');//留言作者id
			var bid = $(this).attr('bid');//blogid
			var cid = $(this).attr('cid');//留言id
			var tname = $(this).attr('tname');
                        			var tpl  = '<div class="Blog_right1_9">';
				tpl +=	 '<div class="div2">';
				tpl +=     '<textarea name="" cols="" rows="" class="Blog_ar1_1" id="rmsg">文明上网，理性发言...</textarea>';
				tpl +=	 '</div>';
				tpl +=   '<div class="div3">';
				tpl +=		'<div class="div3_2"><a href="javascript:void(0);" class="Blog_a11" id="quota_sbumit" url="/Comment/PostComment/" tid="'+tid+'" bid="'+bid+'" cid="'+cid+'" tname="'+tname+'" ></a><a href="javascript:void(0)" id="qx_comment" class="Blog_a12"></a></div>';
				tpl +=		'<div class="div3_1"><a href="javascript:void(0);" id="mface" onclick="delval()"><span></span>表情</a></div>';
				tpl +=		'<div class="clear"></div>';
				tpl +=	 '</div>';
				tpl +=  '</div>';
                          			$('.z_move_comment').html('');
			$(this).parents('.Blog_right1_8').find('.z_move_comment').html(tpl).show();
		});
		//引用的评论提交
		$('#quota_sbumit').live('click' , function(){

			if(isOnLine == '' )
			{
				//showErrorMsg('登录之后才能进行此操作' , '消息提示');
				showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
				return false;
			}

			var bid   = $(this).attr('bid');
			var tid   = $(this).attr('tid');//被引用人的id
			var qid   = $(this).attr('cid');//引用的id
			var url = $(this).attr('url');
			var text = $('#rmsg').val();
			var tname = $(this).attr('tname');
			if(text == '' || text=='文明上网，理性发言...')
			{
				showErrorMsg('评论内容不能为空！' , '消息提示'); 
				return false;
			}
			else
			{
				if(mb_strlen(text) > 1000){
					showErrorMsg('评论内容不能超过500个汉字' , '消息提示'); 
					return false;
				}
			}
		    $.ajax({
		        type: "post",
			    url: url ,
			    data: {'bid': bid , 'to' : tid , 'qid' : qid , 'text': text , 'tname' : tname },
				dataType: 'json',
			    success: function(data){
				    if(data.code == 1){
						var tpl =  '<div class="Blog_right1_8">';
							tpl+=     '<div class="Blog_right_img1"><a href="' +data.info.url+ '" >' + data.info.header + '</a></div>';
							tpl+=     '<div class="Blog_right_font1">';
							tpl+=         '<p class="Blog_p5"><span><a href="' +data.info.url+ '" >' + data.info.username + '</a></span>' + data.info.dateline + '</p>';
							tpl+=         '<p class="Blog_p7"><a href="' + data.info.quota.url + '">' + data.info.quota.username + '</a>：'+ data.info.quota.content + '</p>';
							tpl+=         '<p class="Blog_p8">' + data.info.content + '</p><span class="span_text1"><a href="javascript:void(0);" class="Blog_a10" toid=' + data.info.fuid + ' bid=' + data.info.bid + ' cid=' + data.info.cid + '  tname = ' + data.info.username + ' >回复</a> | 　<a class="comment_del_mark" style="cursor:pointer" url="' + data.info.delurl + '" >删除</a>　| 　<a href="javascript:showJuBao(\'/blog/ViewReport/\','+data.info.cid+')" class="box_report" cid="' + data.info.cid + '" >举报</a></span></div>';
							tpl+=         '<div class="z_move_comment" style="display:none"></div>';
							tpl+=	      '<div class="Blog_line1"></div></div>';
							$('#replyList .Blog_right1_8:first').before(tpl);
							$('.z_move_comment').html('').hide();
				    }
					else if(data.code == -1){
						//showErrorMsg(data.info , '消息提示'); 
						showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
			        }
                },
			    error: function(){//请求出错处理
                        
                }
			});
		});
		//底部发表评论
		$('#submitmsg').click(function(){
			if(allowComment == 1)
			{
				showErrorMsg('该博文不允许评论' , '消息提示'); 
				return false;
			}
			var bid   = $(this).attr('bid');
			var toid  = $(this).attr('toid');
			var text = $('#reply').val();
			var url = $(this).attr('url');
			if(text == '' || text=='文明上网，理性发言...')
			{
				showErrorMsg('评论内容不能为空！' , '消息提示'); 
				return false;
			}
			else
			{
				if(mb_strlen(text) > 1000){
					showErrorMsg('评论内容不能超过500个汉字' , '消息提示'); 
					return false;
				}
			}
		    $.ajax({
		        type: "post",
			    url: url ,
			    data: {'bid': bid , 'to' : toid ,'text': text},
				dataType: 'json',
			    success: function(data){
				    if(data.code == 1)
					{
						var tpl   = '<div class="Blog_right1_8">';
							tpl  +=   '<div class="Blog_right_img1"><a href="' +data.info.url+ '" >' + data.info.header + '</a></div>';
							tpl  +=	  '<div class="Blog_right_font1">';
							tpl  +=       '<p class="Blog_p5"><span><a href="' +data.info.url+ '" >' + data.info.username + '</a></span>' + data.info.dateline + '</p>';
							tpl  +=       '<p class="Blog_p6">' + data.info.content + '</p>';
							tpl  +=		  '<div class="div1"><a href="javascript:void(0);" class="Blog_a10"  toid=' + data.info.fuid + ' bid=' + data.info.bid + ' cid=' + data.info.cid + '>回复</a> | 　<a class="comment_del_mark" style="cursor:pointer" url="' + data.info.delurl + '">删除</a>　| 　<a href="javascript:showJuBao(\'/blog/ViewReport/\','+data.info.cid+')" class="box_report" cid="' + data.info.cid + '">举报</a></div>';
							tpl  +=		  '<div class="z_move_comment" style="display:none"></div>';
							tpl  +=    '</div><div class="Blog_line1"></div></div>';
							$('.Blog_tit3:first').after(tpl);
							$('#reply').val('文明上网，理性发言...');
					}
					else if(data.code == -1)
					{
						showErrorMsg(data.info , '消息提示'); 
			        }
                },
			    error: function(){//请求出错处理
                        
                }
		    });
			
		});
		//底部评论重置
		$('#reset_comment').click(function(){
			$('#reply').val('文明上网，理性发言...');
		});
		//取消回复
		$('#qx_comment').live('click' , function(){
			$('.z_move_comment').html('').hide();
		});


		$('#rmsg, #reply').live({
		    focus:function(){
			    if($(this).val() == '文明上网，理性发言...'){
			        $(this).val('');
			    }
			},
			blur:function(){
		        if($(this).val() == ''){
			        $(this).val('文明上网，理性发言...');
			    }
			}
		});
		//删除留言确认
		$('.comment_del_mark').live('click' , function(){
			var url = $(this).attr('url');
			asyncbox.confirm('删除留言','确认', function(action){
				if(action == 'ok')
				{
					location.href = url;
				}
			});
		});
		//删除时间确认
		$('.del_article_id').click(function(){
			var delurl = $(this).attr('delurl');
			asyncbox.confirm('删除文章','确认', function(action){
				if(action == 'ok')
				{
					location.href = delurl;
				}
			});
		});
		/*
		//字数限制
		$('#rmsg, #reply').live('keyup', function(){
			var id = $(this).attr('id');
			var left = Util.calWbText($(this).val(), 500);
			var eid = '#errmsg';
			
			if(id == 'reply') eid =  '#rerrmsg';
			if (left >= 0)
		        $(eid).html('您还可以输入<span>' + left + '</span>字');
		    else
		        $(eid).html('<font color="red">您已超出<span>' + Math.abs(left) + '</span>字 </font>');
		});
		*/
		//加载表情
                $('#face').click(function(){
                    var val=$('#reply').val();
                    if(val == '文明上网，理性发言...'){
                        $('#reply').val('');
                    }
                });
              
	    $('#face').qqFace({id : 'facebox1', assign : 'reply', path : '/image/qqface/'});
	    $('#mface').qqFace({id : 'facebox', assign : 'rmsg', path:'/image/qqface/'});
	    
		/*
		$('#class_one_id').change(function(){
			alert(123213);
			var id = parseInt($(this).val() , 10);
			if(id == 0) return false;
			$('.hidden_son_class span').each(function( index , dom ){
				if( dom.attr('cid')  == id )
				{
				}
			});
		});
		*/
		//转载文章
		var turn_url = "/blog/viewClassPart/";
		$('#repost_bar').click(function(){
			if(isOnLine == '' )
			{
				//showErrorMsg('登录之后才能进行此操作' , '消息提示');
				showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
				return false;
			}
			var id = $(this).attr('bid');
			asyncbox.open({
				id  : 'turn_class_thickbox',
				url : turn_url,
				title : '转载文章',
				width : 330,
				height : 131,
				scroll : 'no',
				data : {
					'id'	 : id
				},
				callback : function(action){
					if(action == 'close'){
						$.cover(false);
					}
				}
			});
		});
		/*
	    //转发文章
	    $('#repost_bar').live('click' , function(){
			if(isOnLine == '' )
			{
				//showErrorMsg('登录之后才能进行此操作' , '消息提示');
				showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
				return false;
			}
	    	var bid  = $(this).attr('bid');
	    	var url  = $(this).attr('url');
	    	asyncbox.confirm('转载文章','确认', function(action){
	    	  if(action == 'ok'){
	    	    $.ajax({
				type:"POST",
				url:url,	
				data: {
					'bid' : bid 
				},
				dataType: 'json',
				success:function(msg){
				  if(msg.error == 0){
				    showSucceedMsg('转发成功！', '消息提示');
				  }else if(msg.error == 1){
				    //location.href = '/index.php?r=site/login';
					showErrorMsg('操作失败,您需要先登录!', '消息提示', '/site/login/');
				  }else{
				    showErrorMsg(msg.error_content, '消息提示');
			      }
				}
			  });
	    	  }
	    	});

		});
		*/

	});
        function delval(){
           if($('#rmsg').val() == '文明上网，理性发言...'){
                  $('#rmsg').val('');
            }
        }
</script>
<!--该部分应该放在输出代码块的后面才起作用 -->
<script type="text/javascript">

SyntaxHighlighter.autoloader(
	'applescript			/highlight/scripts/shBrushAppleScript.js',
	'actionscript3 as3		/highlight/scripts/shBrushAS3.js',
	'bash shell				/highlight/scripts/shBrushBash.js',
	'coldfusion cf			/highlight/scripts/shBrushColdFusion.js',
	'cpp c					/highlight/scripts/shBrushCpp.js',
	'c# c-sharp csharp		/highlight/scripts/shBrushCSharp.js',
	'css					/highlight/scripts/shBrushCss.js',
	'delphi pascal			/highlight/scripts/shBrushDelphi.js',
	'diff patch pas			/highlight/scripts/shBrushDiff.js',
	'erl erlang				/highlight/scripts/shBrushErlang.js',
	'groovy					/highlight/scripts/shBrushGroovy.js',
	'java					/highlight/scripts/shBrushJava.js',
	'jfx javafx				/highlight/scripts/shBrushJavaFX.js',
	'js jscript javascript	/highlight/scripts/shBrushJScript.js',
	'perl pl				/highlight/scripts/shBrushPerl.js',
	'php					/highlight/scripts/shBrushPhp.js',
	'text plain				/highlight/scripts/shBrushPlain.js',
	'py python				/highlight/scripts/shBrushPython.js',
	'ruby rails ror rb		/highlight/scripts/shBrushRuby.js',
	'scala					/highlight/scripts/shBrushScala.js',
	'sql					/highlight/scripts/shBrushSql.js',
	'vb vbnet				/highlight/scripts/shBrushVb.js',
	'xml xhtml xslt html	/highlight/scripts/shBrushXml.js'
);
SyntaxHighlighter.all();


function code_hide(id){
	var code = document.getElementById(id).style.display;
	if(code == 'none'){
		document.getElementById(id).style.display = 'block';
	}else{
		document.getElementById(id).style.display = 'none';
	}
}
</script>

<!--回顶部js2011.12.30-->
<script language="javascript">
 lastScrollY=0;
 function heartBeat(){
 var diffY;
 if (document.documentElement && document.documentElement.scrollTop)
     diffY = document.documentElement.scrollTop;
 else if (document.body)
     diffY = document.body.scrollTop
 else
     {/*Netscape stuff*/}
 percent=.1*(diffY-lastScrollY);
 if(percent>0)percent=Math.ceil(percent);
 else percent=Math.floor(percent);
 document.getElementById("full").style.top=parseInt(document.getElementById("full").style.top)+percent+"px";
 lastScrollY=lastScrollY+percent;
 if(lastScrollY<200)
 {
 document.getElementById("full").style.display="none";
 }
 else
 {
 document.getElementById("full").style.display="block";
 }
 }
 var gkuan=document.body.clientWidth;
 var ks=(gkuan-960)/2-30;
 suspendcode="<div id=\"full\" style='right:4px;POSITION:absolute;TOP:500px;z-index:100;width:20px; height:50px;cursor:pointer;'><a href=\"javascript:void(0)\" onclick=\"window.scrollTo(0,0);\"><img src=\"\/image\/top.png\" /></a></div>"
 document.write(suspendcode);
 window.setInterval("heartBeat()",1);
 </script><div id="full" style="right: 4px; position: absolute; top: 1000px; z-index: 100; width: 20px; height: 50px; cursor: pointer; display: block;"><a href="javascript:void(0)" onclick="window.scrollTo(0,0);"><img src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/top.png"></a></div>
  <!-- footer -->
  
  <div class="Blog_footer" style="clear:both">
    <div><a href="http://www.it168.com/bottomfile/about.shtml" rel="nofollow">盛拓传媒简介</a> | <a href="http://www.it168.com/bottomfile/it168.shtml" rel="nofollow">关于IT168</a> | <a href="http://www.it168.com/bottomfile/hzhb.shtml" rel="nofollow">合作伙伴</a> | <a href="http://www.it168.com/bottomfile/ggfw.shtml" rel="nofollow">广告服务</a> | <a href="http://www.it168.com/bottomfile/sytk.shtml" rel="nofollow">使用条款</a> | <a href="http://www.it168.com/bottomfile/tgzn.shtml" rel="nofollow">投稿指南</a> | <a href="http://www.wintalent.cn:8031/wt5/sequelmedia/web/index" rel="nofollow">诚聘精英</a> | <a href="http://www.it168.com/bottomfile/lxwm.shtml" rel="nofollow">联系我们</a> | <a href="http://bbs.app111.com/" rel="nofollow">苹果论坛</a> | <a href="http://www.it168.com/bottomfile/sitemap/sitemap.html" rel="nofollow">网站导航</a> | <a href="http://archive.it168.com/" rel="nofollow">往日回顾</a> 
      <p>	北京皓辰网域网络信息技术有限公司. 版权所有 <a href="http://www.it168.com/images/icp.jpg" rel="nofollow">京ICP证:060528号</a> 北京市公安局海淀分局网监中心备案编号：1101082001<br>	<a href="http://www.it168.com/1201/images/it168tv.pdf" rel="nofollow">广播电视节目制作经营许可证(京) 字第1234号</a> <a href="http://www.it168.com/huiyuan/it168.html" rel="nofollow">中国互联网协会会员</a> <a href="http://www.it168.com/icoimages/yczz.jpg" rel="nofollow">测绘资质证书（乙测资字11005067）</a> <a href="http://www.it168.com/1201/images/wlwh.pdf" rel="nofollow">网络文化经营许可证</a>	</p>
      <div>感谢所有关心和支持过ITPUB的朋友们
      </div>
    </div>
  </div>
</div>
<script language="javascript">

//全局错误提示弹出框
function showErrorMsg(content, title, url){
	var url = url || '';
	var title = title || '消息提示';
	var html = '';
	html += '<div class="HT_layer3_1 HT_layer3_2"><ul><li><p><span class="login_span1"></span>' + content + '</p></li>';
	if(url == '' || url.length == 0){
		html += '<li class="HT_li1"><input type="button" class="HT_btn2"  onclick=\'close_windows("error_msg")\'></li>';	
	} else {
		html += '<li class="HT_li1"><input type="button" class="login_btn1" onclick="location.href=\'' + url + '\'"></li>';
	}
	html += '</ul></div>';
	$.cover(true);
	   asyncbox.open({
		 id: 'error_msg',
		 title : title,
		 html : html,
		 'callback' : function(action){
			 if(action == 'close'){
				 $.cover(false);
			 }
		 }
	});
}

//全局正确提示
function showSucceedMsg(content, title , url ){
	var url = url || '';
	var title = title || '消息提示';
	var html = '';
	html += '<div class="HT_layer3_1 HT_layer3_2"><ul><li><p><span class="login_span2"></span>' + content + '</p></li>';
	if(url == '' || url.length == 0){
		html += '<li class="HT_li1"><input type="button" class="HT_btn2"  onclick=\'close_windows("error_msg")\'></li>';	
	} else {
		html += '<li class="HT_li1"><input type="button" class="HT_btn2" onclick="location.href=\'' + url + '\'"></li>';
	}
	html += '</ul></div>';
	$.cover(true);
	asyncbox.open({
		 id: 'error_msg',
		 title : title,
		 html : html,
		 'callback' : function(action){
			 if(action == 'close'){
				 $.cover(false);
			 }
		 }
	});
}

//关闭指定id的窗口
function close_windows(id){
	 var tmp="1";
if(tmp){
        var tm='1';
}
	$.cover(false);
	$.close(id);
}


//公告
var tID;
var tn;                        // 高度
var nStopTime = 5000;        // 不同行间滚动时间隔的时间，值越小，移动越快
var nSpeed = 50;            // 滚动时，向上移动一像素间隔的时间，值越小，移动越快
var isMove = true;
var nHeight = 25;
var nS = 0;
var nNewsCount = 3;

/**
 * n 用于表示是否为第一次运行
 **/
function moveT(n)
{
    clearTimeout(tID)
    var noticev2 = document.getElementById("noticev2")
    nS = nSpeed;
    
    // 只在第一次调用时运行，初始化环境（有没有参数）
    if (n)
    {
        // 设置行高
        noticev2.style.lineHeight = nHeight + "px";
        // 初始化显示位置
        tn = 0;
        // 刚进入时在第一行停止时间
        nS = nStopTime;
    }
    
    // 判断鼠标是否指向层
    if (isMove)
    {
        // 向上移动一像素
        tn--;
        // 如果移动到最下面一行了，则移到顶行
        if (Math.abs(tn) == nNewsCount * nHeight)
        {
            tn = 0;
        }
        // 设置位置
        noticev2.style.marginTop = tn + "px";
        // 完整显示一行时，停止一段时间
        if (tn % nHeight == 0)
        {
            nS = nStopTime;
        }
    }

    tID = setTimeout("moveT()", nS);
}
moveT(1);    // 此处可以传入任何参数
</script>

<!-- START STAT PV -->
<script src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/pv.js" type="text/javascript"></script>
<script type="text/javascript">

function sendPV(){ 
var pvTrack = new PvTrack(); 
pvTrack.type = 35; // 频道类别ID 
pvTrack.channel = 23; // 频道ID 
pvTrack.pageType = 0; 
pvTrack.track(); 
} 
window.setTimeout("sendPV()", 1000); 
</script>

  <script src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/itpub_detail_blog.js"></script><script src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/c.php" language="JavaScript" charset="gb2312"></script>

<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F4d3c7b7e328a205250dfc24e66c623ee' type='text/javascript'%3E%3C/script%3E"));

function linkto(){
    setCookie("returnUrl", location.href, 1459501135, "/");
}
function linktoOut(){
    setCookie("returnOutUrl", location.href, 1459501135, "/");
}
//JS写COOKIE
function setCookie(name, value, expires, path, domain){
	if(!arguments[2]) expires = 3600 * 24;
	if(!arguments[3]) path = "";
	if(!arguments[4]) domain = "";
	var str=name+"="+escape(value);
	if(expires!=""){
		var date=new Date();
		date.setTime(date.getTime()+expires*1000);
		str+=";expires="+date.toGMTString();
	}
	if(path!=""){
		str+=";path="+path;//指定可访问cookie的目录
	}
	if(domain!=""){
		str+=";domain="+domain;//指定可访问cookie的域
	}
	document.cookie = str;
}

</script><script src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/h.js" type="text/javascript"></script><a href="http://tongji.baidu.com/hm-web/welcome/ico?s=4d3c7b7e328a205250dfc24e66c623ee" target="_blank"><img border="0" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/21.gif" width="20" height="20"></a>

<!-- END STAT PV -->
<script type="text/javascript" src="./Ivy学习笔记-cloudboyyun-ITPUB博客_files/jquery.qqFace.js"></script>


<div id="asyncbox_cover" unselectable="on" style="opacity:0.1;filter:alpha(opacity=10);background:#000"></div><div id="asyncbox_clone"></div><div id="asyncbox_focus"></div><div id="asyncbox_load"><div><span></span></div></div><iframe allowtransparency="true" id="add_speed_bfd" frameborder="0" scrolling="no" style="height: 0px; width: 0px; float: none; position: absolute; overflow: hidden; z-index: 333333; margin: 0px; padding: 0px; border: 0px none; background: none;"></iframe><div id="bfd_flbox" style="display: block; position: absolute; left: -9999px; overflow: hidden; height: 1px; width: 1px;"><object id="bfd_swf_factory2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1" height="1"><param name="allowScriptAccess" value="always"><param name="wmode" value="window"><param name="movie" value="http://static.baifendian.com/api/2.0/main.swf"><param name="quality" value="high"><param name="FlashVars" value=""><embed src="http://static.baifendian.com/api/2.0/main.swf" flashvars="" quality="high" wmode="window" name="bfd_swf_factory2" allowscriptaccess="always" swliveconnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1" height="1"></object></div></body></html>